import { Module } from '@nestjs/common';
import { RoleService } from './role.service';
import { RoleController } from './role.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import {Role} from './entities/role.entity';
import {SysRoleWithMenuEntity} from './entities/role.menu.entity';
@Module({
  imports: [
    TypeOrmModule.forFeature([Role,SysRoleWithMenuEntity]),
    // JwtModule.registerAsync({
    //   imports: [ConfigModule],
    //   useFactory: async (config: ConfigService) => ({
    //     secret: config.get('jwt.secretkey'),
    //   }),
    //   inject: [ConfigService],
    // }),
  ],
  controllers: [RoleController],
  providers: [RoleService],
  exports: [RoleService],
})
export class RoleModule {}
